<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<h1>12115，诗芳我儿</h1>
	<div id="box"></div>
</body>
</html>
<script src="/node_modules/jquery/dist/jquery.js"></script>
<script>
$.ajax({
	url: "/list",
	data:{name:"123"},
    type: "get",
    dataType: "json",
    success: function(res) {
		// data = jQuery.parseJSON(data);  //dataType指明了返回数据为json类型，故不需要再反序列化
		console.log(121321);
		console.log(res);
		// res = JSON.parse(res);
		document.querySelector("#box").innerHTML = `${res.result[0].name}  ${res.result[1].name}`;
    }
});
</script>